﻿using System;
using System.Collections.Generic;
using System.Text;
using Meqs.Entity;

namespace Meqs.Logic.Interface
{
    public interface ITemplatesLogic : IMultiCommonLogic<Templates, int>
    {
        bool DeleteStyleTable(int stId, String schoolMark);

        /// <summary>
        /// 复制选中的样表并新建一个样表
        /// </summary>
        int CopyStyleTableToNewtable(int destClsId, int srcStId, String destStName, String schoolMark, int style);

        /// <summary>
        /// 添加样表
        /// </summary>
        int CreateTemplates(Templates template, String schoolMark);

        /// <summary>
        /// 更新样表
        /// </summary>
        int UpdateTemplates(Templates template, String schoolMark);

        /// <summary>
        /// 获取项目下的样表
        /// </summary>
        /// <param name="itemsID"></param>
        /// <param name="schoolMark"></param>
        /// <returns></returns>
        IList<Templates> FindTemplateByEvalItems(int itemsID, string schoolMark);

        int GetTemplateScore(String schoolMark, int tID);
    }
}
